package com.geguo.mvptest;

import com.geguo.mvptest.interfaces.ICallback;
import com.geguo.mvptest.interfaces.IModel;

/**
 * 作者  Administrator
 * 时间  2016/4/7 10:49
 * 文件  MVPTest
 * 描述
 */
public class Model implements IModel {
    @Override
    public void getData(final ICallback callback) {
        new Thread(){
            @Override
            public void run() {
                try {
                    sleep(2000);//线程阻塞
                    callback.onResult("我是TestView");
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }
            }
        }.start();
    }
}
